home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-12-08 | 909 b | 40 lines | [TEXT/GEOL] |
- Item forwarded by CPLUS.ADMIN to CP.ARCHIVES
-
- Item forwarded by ALCABES to CPLUS.APPLE$
-
- Item 0637487 29-Nov-89 02:24
-
- From: MID France, Dev, MID/Nautil
-
- To: CPLUS.DEV$ C++ Interest List--Developers
-
- Sub: Multiple base operator new
-
- From: Etienne Vautherin
-
-
- Hello C++ gurus !
-
- I have a little question about multiple base classes.
-
- Suppose:
-
- class A {
- public:
- void* operator new(long size) { ... }
- };
- class B { ... };
- class C : public A, public B { ... };
-
- I think there is an ambiguity for C operator new. What is the C operator new?
- The A one or the B one? Reference Manual p.65 says "Ambiguities can be resolved
- by qualifying a name with its class name", but using new operator for class C
- can't qualify another thing that class C.
-
- I am a very soon C++ beginner !
- Thanks
-
- Etienne
-
-
-